﻿/**
 * @file PhyscisPropUniformWapper.h
 * @brief 均质板物理属性 相关的python接口
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
#ifndef _PY_SEA_PHYSCISPROPUniform_WAPPER_H___
#define _PY_SEA_PHYSCISPROPUniform_WAPPER_H___

#include <QString>
#include <QObject>
#include "PythonInterfaceAPI.h"
#include "FITK_Component/FITKAcousticsPhysics/PyFITKPhyscisPropUniform.h"

class Uniform : public Acoustics::PyFITKPhyscisPropUniform
{
public:
    explicit Uniform(const QString& name);
    explicit Uniform();
    virtual ~Uniform() = default;
};

/**
 * @brief 均质板物理属性相关PYTHON接口装饰
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
class PythonInterfaceAPI PhyscisPropUniformWapper : public QObject
{
    Q_OBJECT
public slots:
    Uniform* new_Uniform();

    void delete_Uniform(Uniform* obj);
    /**
     * @brief 在Python解释器中通过名称获取对象
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    Uniform* static_Uniform_GetUniform(const QString& name);
    /**
     * @brief 获取名称
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    QString getName(Uniform* obj);
    /**
     * @brief 设置名称
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    void setName(Uniform* obj, const QString& name);
    /**
     * @brief  设置材料
     * @param[i] material:材料
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-3
     */
    void setMaterial(Uniform* obj, const QString& material);
    /**
     * @brief  设置厚度
     * @param[i] thickness:厚度
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-3
     */
    void setThickness(Uniform* obj, double thickness);
    /**
     * @brief  创建物理属性
     * @param[i] name 名称
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-3
     */
    void createPhyscisProp(Uniform* obj, const QString& name);
};

#endif

